<script type="text/javascript" language="javascript" src="/gaf/js/common.js"></script>
<link rel="stylesheet" type="text/css" href="/gaf/css/base.css" />
<link rel="stylesheet" type="text/css" href="/gaf/css/common.css" />
<link rel="stylesheet" type="text/css" href="/gaf/css/table_def.css" />
<p>景区管理/修改景区</p>
<form action="/scenic/scenic/editscenic">
<p><input type="hidden" id="sid" name="sid" value="<?php echo $this->scenic['sid'];?>"></p>
	<table>
		<tr><td>景区名称:<input type="text" id="name" name="name" value="<?php echo $this->scenic['name'];?>">
		景区等级:<select id="level" name="level">
			<option <?php if($this->scenic['level']==1) echo "selected";?> value="1">A</option>
			<option <?php if($this->scenic['level']==2) echo "selected";?>  value="2">AA</option>
			<option <?php if($this->scenic['level']==3) echo "selected";?> value="3">AAA</option>
			<option <?php if($this->scenic['level']==4) echo "selected";?> value="4">AAAA</option>
			<option <?php if($this->scenic['level']==5) echo "selected";?> value="5">AAAAAA</option>										
		</select>
		是否推荐:<select id="recommend" name="recommend">
			<option <?php if($this->scenic['recommend']==0) echo "selected";?> value="0">不推荐</option>
			<option <?php if($this->scenic['recommend']==1) echo "selected";?> value="1">推荐到首页</option>
			<option <?php if($this->scenic['recommend']==2) echo "selected";?> value="2">推荐到其他</option>								
		</select>
		</td></tr>
		<tr><td>景区地址:<input type="text" id="addr" name="addr" value="<?php echo $this->scenic['addr']?>" size="80"/>
		</td></tr>
	</table>
	<p>景区所属区域  县:<select id='district' name='district'><?php 
								echo "<option value=-1>----</option>";
								foreach ($this->rslist as $r) {	
									if($r['rlevel']==0)	{
										echo "<option ".$r['sel']." value=".$r['rid'].">".$r['rname']."</option>";
									}
							}?>
						</select>
				   市:<select id='city' name="city"><?php
				   		 echo "<option value=-1>----</option>";
				   		 foreach ($this->rslist as $r) {
								if($r['rlevel']==1)	{
										echo "<option ".$r['sel']." value=".$r['rid'].">".$r['rname']."</option>";
									}
							}?>
				   		</select>
				    省:<select id='province' name="province"><?php
				   		 echo "<option value=-1>----</option>";
				   		 foreach ($this->rslist as $r) {
								if($r['rlevel']==2)	{
										echo "<option ".$r['sel']." value=".$r['rid'].">".$r['rname']."</option>";
									}
							}?>
				   		</select>
				    地区:<select id='area' name="area"><?php
				   		 echo "<option value=-1>----</option>";
				   		 foreach ($this->rslist as $r) {
								if($r['rlevel']==3){
										echo "<option ".$r['sel']." value=".$r['rid'].">".$r['rname']."</option>";
									}
							}?>
				   		</select>
				   	国外:<select id='foreign' name="foreign"><?php
				   		 echo "<option value=-1>----</option>";
				   		 foreach ($this->rslist as $r) {
								if($r['rlevel']==4)	{
									echo "<option ".$r['sel']." value=".$r['rid'].">".$r['rname']."</option>";
									}
							}?>
				   		</select>
	</p>		  
	<div >
		<p>景区详细描述:</p>
		<p><textarea  title="景区详细描述" id="regiondesc" name="regiondesc" style="overflow:scroll;height:300;width:500"><?php echo $this->scenic['regiondesc']?></textarea></p>
		<p>景区天气描述:</p>
		<p><textarea  title="景区天气描述" id="weather" name="weather" style="overflow:scroll;height:100;width:500"><?php echo $this->scenic['weather']?></textarea></p>
		<p>景区周边环境:</p>
		<p><textarea  title="景区周边环境" id="environment" name="environment" style="overflow:scroll;height:100;width:500"><?php echo $this->scenic['environment']?></textarea></p>
		<p>景区出行指南:</p>
		<p><textarea  title="景区出行指南" id="travelguide" name="travelguide" style="overflow:scroll;height:200;width:500"><?php echo $this->scenic['travelguide']?></textarea></p>
		<p>景区点评:</p>
		<p><textarea  title="景区点评" id="review" name="review" style="overflow:scroll;height:200;width:500"><?php echo $this->scenic['review']?></textarea></p>
	</div>
		
	<p><input type="submit" value="确定" onclick="return check();"></p>
</form>